package com.chey.service.impl;

import com.chey.dao.ApplyDao;
import com.chey.dao.ArptDao;
import com.chey.domain.Arpt;
import com.chey.domain.Updata;
import com.chey.service.DetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 中转站信息查询
 * @author JanYao
 * @version 0.1
 */
@Service
public class DetailServiceImpl implements DetailService {
@Autowired
private ArptDao arptDao;
    @Override
    public List<Arpt> detail(Updata updata) {
        List<Arpt> arptt = null;
        List<String> arptUUID = arptDao.findArptUUID(updata.getFlid(), updata.getCfno());
        for (String s : arptUUID) {
             arptt = arptDao.findArptT(s);
        }
        System.out.println(arptt);
        return arptt.isEmpty()?null:arptt;
    }
}
